package com.cgy.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.cgy.entity.ZiYuan;

public interface ziyuanRepository extends JpaRepository<ZiYuan, Integer>,JpaSpecificationExecutor<ZiYuan> {
	
@Query(value = "delete from ZiYuan WHERE zid=?1")  
@Modifying 
@Transactional 
Integer deleteZiYuan(Integer zid);
}
